#ifndef _COMMANDSH_
#define _COMMANDSH_

#include "sched.h"


#define CMD_MODE "mode"
#define CMD_PASS "pass"
#define CMD_RUN "run"
#define CMD_KILL "kill"
#define CMD_SHOW "show"
#define CMD_EXIT "exit"

typedef	void (*executor)(const void *);

typedef struct st_command {
	const char *cmd_name;
	executor cmd_exec;
} COMMAND;

void execute_command(char *);

static void cmd_mode(const void *);
static void cmd_pass(const void *);
static void cmd_kill(const void *);
static void cmd_run();
static void cmd_show();
static void cmd_exit();


#endif
